PowerSNMP for .NET CF
ReceiveFrom(Byte[],EndPoint) Method
See Also  Send comments on this topic.
Dart.Common Namespace > UdpSocket Class > ReceiveFrom Method : ReceiveFrom(Byte[],EndPoint) Method




buffer
Byte[] to which data will be copied.
remoteEP
The IPEndPoint representing the origin of the datagram.
Read a datagram off the socket. The ReceiveTimeout property controls how long this method will block.

Syntax

Visual Basic (Declaration) 
Public Overloads Function ReceiveFrom( _
   ByVal buffer() As Byte, _
   ByRef remoteEP As EndPoint _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As UdpSocket
Dim buffer() As Byte
Dim remoteEP As EndPoint
Dim value As Integer
 
value = instance.ReceiveFrom(buffer, remoteEP)
C# 
public int ReceiveFrom( 
   byte[] buffer,
   ref EndPoint remoteEP
)
Managed Extensions for C++ 
public: int ReceiveFrom( 
   byte[]* buffer,
   ref EndPoint* remoteEP
) 
C++/CLI 
public:
int ReceiveFrom( 
   array<byte>^ buffer,
   EndPoint^% remoteEP
) 

Parameters

buffer
Byte[] to which data will be copied.
remoteEP
The IPEndPoint representing the origin of the datagram.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.